package com.zzyl.mapper;

import com.zzyl.dto.BedDto;
import com.zzyl.entity.Bed;
import com.zzyl.vo.BedVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BedMapper {

    List<BedVo> getBedsByRoomId(Long roomId);

    /*增加床位*/
    int insertBed(Bed bed);

    int deleteBedByid(Long id);

    /*根据id查询床位*/
    Bed queryBedById(Long id);

    /*更新床位信息*/
    int updateBed(Bed bed);
}

